package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 招标项目
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2022-05-13 10:40:26
 */
@Data
@TableName("operate_log")
public class OperateLogEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public OperateLogEntity() {

	}

	public OperateLogEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;

	/**
	 * 操作标题
	 */
	private String title;
	
	/**
	 * 操作类型
	 */
					
	private String action;

	/**
	 * 操作用户id
	 */
					
	private Long operatorId;

	/**
	 *
	 */
	private String operatorRole;

					
	private String operatorName;
	

	private String mark;


	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date createTime;
	


}
